﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Feedback
/// </summary>
public class Feedback
{

	/// <summary>
    /// Fields of Feedback
    /// </summary>
    #region Fields
    int id;   
    string writerName;   
    string writerEmail;  
    string subject;   
    string content;  
    DateTime date;   
    bool isReplied;  
    #endregion

    /// <summary>
    /// Properties of Feedback
    /// </summary>
    #region Properties
    public int Id
    {
        get { return id; }
        set { id = value; }
    }
    public string WriterName
    {
        get { return writerName; }
        set { writerName = value; }
    }
    public string WriterEmail
    {
        get { return writerEmail; }
        set { writerEmail = value; }
    }
    public string Subject
    {
        get { return subject; }
        set { subject = value; }
    }
    public string Content
    {
        get { return content; }
        set { content = value; }
    }
    public DateTime Date
    {
        get { return date; }
        set { date = value; }
    }
    public bool IsReplied
    {
        get { return isReplied; }
        set { isReplied = value; }
    }
   
    #endregion

    /// <summary>
    /// Constructures Feedback
    /// </summary>
    #region Constructures
    public Feedback()
    {
        id = 0;
        writerEmail = "";
        writerName = "";
        subject = "";
        content = "";
        date = new DateTime();
        isReplied = true;
    }
    public Feedback(int id, string writerName, string writerEmail,string subject , string content, DateTime date, bool isReplied)
	{
        this.id = id;
        this.writerEmail = writerEmail;
        this.writerName = writerName;
        this.subject = subject;
        this.content = content;
        this.date = date;
        this.isReplied = isReplied;
    }
    #endregion
}